home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: netcom.com!marnold
- From: marnold@netcom.com (Matt Arnold)
- Subject: Re: Compiler bug in Borland C++ 5.0
- Message-ID: <marnoldDpLAwv.Apz@netcom.com>
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- References: <316A22E0.47B6@ee.oulu.fi>
- Date: Tue, 9 Apr 1996 10:10:07 GMT
- Sender: marnold@netcom13.netcom.com
-
- Arto Pesonen <artsi@ee.oulu.fi> writes:
-
- >Try setting data aligment to other than byte and compile OWL project.
- >Virtual function InitMainWindow is not called with this setup (Double
- >word or quad word). With word aligment program crashes. Byte aligment
- >always work.
-
- This is probably because the OWL libraries are compiled with byte
- alignment. If so, you can't use them with any other alignment unless
- you recomplie the OWL libraries for the alignment you want to use.
- Should be possible. Your Borland docs should contain information
- about recompiling the run-time library, OWL, etc..
-
- The other option is to use the byte-alighnment you want, but make
- sure you place byte-alignment #pragma's around all your OWL #includes.
- This will make sure no OWL code uses anything other than byte
- alignment, but yours can use something else. I'm not sure if this
- will catch everything, but it should be workable.
-
- This is probably not a bug. It's also probably documented somewhere.
- You'd have the same kind of problems compiling your own library for
- word alignment and then trying to #include your headers while using
- quad alignment, for example.
-
- Your best bet is probably to just stick with byte alignment. Why
- are you changing it anyway?
-
- Regards,
- -------------------------------------------------------------------------
- Matt Arnold | | ||| | |||| | | | || ||
- marnold@netcom.com | | ||| | |||| | | | || ||
- Boston, MA | 0 | ||| | |||| | | | || ||
- 617.389.7384 (h) 617.576.2760 (w) | | ||| | |||| | | | || ||
- C++, MIDI, Win32/95 developer | | ||| 4 3 1 0 8 3 || ||
- -------------------------------------------------------------------------
-